package com.zlq.cn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 影片分类
 * </p>
 *
 * @author zhoucl
 * @since 2022-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("movie_category")
@Accessors(chain = true)
@ApiModel(value = "MovieCategory对象", description = "影片分类")
public class MovieCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "影片分类id")
    @TableId(value = "movie_category_id", type = IdType.AUTO)
    private Integer movieCategoryId;

    @ApiModelProperty(value = "影片分类名称")
    private String categoryName;

    @ApiModelProperty(value = "影片分类组")
    private String categoryGroup;

    @ApiModelProperty(value = "影片分类链接")
    private String categoryLink;

    @ApiModelProperty(value = "分类状态")
    private Integer status;

    @ApiModelProperty(value = "影片列表")
    @TableField(exist = false)
    private List<Movie> movies;
}
